package com.text7;

import java.sql.SQLException;
import java.util.Date;

public interface NewsDao {
    //查看信息
    public void getNewsByTitle();
    //增加信息
    public void addNews(int id, int newsId ,String content,String author,String ip,  Date createdate);

    //删除信息
    public void deleteNews(int id);
    //改变信息
    public void updateNews(int id, String content) throws SQLException;
}
